    /* javascript*/
    !(function(win, doc){
        function setFontSize() {
                var html = document.documentElement;
                var windowWidth = html.clientWidth;
                if( windowWidth > "768"){
                    html.style.fontSize="100px";
                    //如果大于768使htmlFontSize=120
                }else{
                    html.style.fontSize = windowWidth / 6.4 + 'px';
                    // 等价于html.style.fontSize = windowWidth / 640 * 100 + 'px';
                }
        }
        var evt = 'onorientationchange' in win ? 'orientationchange' : 'resize';

        var timer = null;

        win.addEventListener(evt, function () {
            clearTimeout(timer);

            timer = setTimeout(setFontSize, 300);
        }, false);

        win.addEventListener("pageshow", function(e) {
            if (e.persisted) {
                clearTimeout(timer);

                timer = setTimeout(setFontSize, 300);
            }
        }, false);
        // 初始化
        setFontSize();
    }(window, document)); 







